﻿using QuocHoi_TV_Frontend.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace QuocHoi_TV_Frontend.Controllers
{
    public class MenuController : Controller
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            try
            {
                var siteMenuManager = new SiteMenuManager();
                ViewBag.SiteLinks = siteMenuManager.GetSitemMenuItems().ToList();
                base.OnActionExecuting(filterContext);
                var siteMenuManagerVertical = new SiteMenuManager();
                ViewBag.SiteLinksVertical = siteMenuManager.GetSitemMenuItemsVertical().ToList();
                base.OnActionExecuting(filterContext);
            }
            catch (Exception)
            {
                
            }
           
        }

    }
}
